LassoScript Utility
Basics Browse Detail

[Integer->BitAnd]

Tag Link [Integer->BitAnd] Category Math
Type Member Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type None (Modifies in place) Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0

Description

[Integer->BitAnd] performs a bitwise AND operation between each bit in the base integer and the integer parameter.

Syntax

[Integer Variable->(BitAndInteger Value)]

Parameters

Required Parameters
Integer Value The value of the integer which should be combined to the base integer using a bitwise AND operation.

Examples

To combine two integers using a bitwise AND operation:

Use the [Integer->BitAnd] tag. The following example shows the result of performing a bitwise AND operation on 14 (1110) and 13 (1101), resulting in 12 (1100).

[Variable: 'Result'=14]
[($Result)->(BitAnd: 13)]
[Variable: 'Result']

12